
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;


public class quintoorden {

	
	public static void main(String[] args) throws IOException {		
		String frase = "";		
		int n1;		
		System.out.println("digite numero para calcular su orden");		
		BufferedReader opcion = new BufferedReader ( new InputStreamReader(System.in));
	    frase = opcion.readLine();
	    n1 = Integer.parseInt(frase);
	    int r=orden(n1);
	    System.out.println(r);
		
		
	}
	
	public static int orden (int n1){
		if(n1<10){
			return 0;
		}
		else{
			return (1+(orden(n1/10)));
		}
				
	}

}

